//-----------------------------------------------------------------------
// <copyright file="a_StatsByMonth_v2Service.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_StatsByMonth_v2Service
    {
        #region a_StatsByMonth_v2

        public static void Createa_StatsByMonth_v2(a_StatsByMonth_v2 a_StatsByMonth_v2)
        {            
            try
            {
                a_StatsByMonth_v2DAO a_StatsByMonth_v2DAO = new a_StatsByMonth_v2DAO();
                a_StatsByMonth_v2DAO.Createa_StatsByMonth_v2(a_StatsByMonth_v2);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_StatsByMonth_v2(a_StatsByMonth_v2 a_StatsByMonth_v2)
        {            
            try
            {
                a_StatsByMonth_v2DAO a_StatsByMonth_v2DAO = new a_StatsByMonth_v2DAO();
                a_StatsByMonth_v2DAO.Updatea_StatsByMonth_v2(a_StatsByMonth_v2);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_StatsByMonth_v2(int docID, byte month, int docType, int year)
        {            
            try
            {
                a_StatsByMonth_v2DAO a_StatsByMonth_v2DAO = new a_StatsByMonth_v2DAO();
                a_StatsByMonth_v2DAO.Deletea_StatsByMonth_v2(docID, month, docType, year);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_StatsByMonth_v2 Geta_StatsByMonth_v2(int docID, byte month, int docType, int year)
        {            
            try
            {
                a_StatsByMonth_v2DAO a_StatsByMonth_v2DAO = new a_StatsByMonth_v2DAO();
                return a_StatsByMonth_v2DAO.Geta_StatsByMonth_v2(docID, month, docType, year);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_StatsByMonth_v2Collection Geta_StatsByMonth_v2List(a_StatsByMonth_v2Columns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_StatsByMonth_v2DAO a_StatsByMonth_v2DAO = new a_StatsByMonth_v2DAO();
                return a_StatsByMonth_v2DAO.Geta_StatsByMonth_v2List(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_StatsByMonth_v2Collection Geta_StatsByMonth_v2List(a_StatsByMonth_v2Columns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_StatsByMonth_v2DAO a_StatsByMonth_v2DAO = new a_StatsByMonth_v2DAO();
                return a_StatsByMonth_v2DAO.Geta_StatsByMonth_v2List(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}